package org.example.slave.config;

import lombok.RequiredArgsConstructor;
import org.example.slave.bean.MysqlCfg;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author dingrui
 * @since 2022/2/15
 * @description
 */
@Configuration
@RequiredArgsConstructor
public class BeanConfig {

    private final BasicConfig basicConfig;

    @Bean
    public MysqlCfg mysqlCfg() {
        return this.basicConfig.getMysqlCfg();
    }
}
